package com.example.administrator.kotiln.ui

import android.content.Intent
import android.os.Bundle
import com.example.administrator.kotiln.R
import com.example.administrator.kotiln.base.BaseActivity
import com.example.administrator.kotiln.utils.ToastUtils
import kotlinx.android.synthetic.main.activity_head.*
import kotlinx.android.synthetic.main.activity_second.*

class SecondActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second)
        tv.text = resources.getText(R.string.tv1)

        tv.setTextColor(resources.getColor(R.color.tvs))
        initView()
        initValue()
    }


    private fun initView() {
        ToastUtils.showToast(this, "22222222222")
        okgo.setOnClickListener {
            var intent = Intent(this@SecondActivity, OkGoActivity::class.java)
            startActivity(intent)
        }
    }

    private fun initValue() {
        back.setOnClickListener {
            finish()
        }
    }
}
